package com.emergency.embackend.mapper;

import com.emergency.embackend.entity.Video;
import com.emergency.embackend.param.CourseParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseVideoMapper {
    List<Video> getVideoCourse(@Param("typeId") Long typeId);
    //根据名字查询
    CourseParam findName(String videoName);
    //添加视频
    void add(@Param("courseParam")CourseParam courseParam, Long userId);
    //根据id删除视频
    void delId(Long id);
    //跟新视频
    void update(CourseParam courseParam);
    //查找单个视频
    CourseParam findVideo(String videoName);
    //根据id查询userid
    Long findUserId(Long id);
}
